package com.three.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.three.core.entity.Store;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
* 积分记录表详情
* @TableName tb_user_integral_log
*/
@TableName(value ="tb_user_integral_log")
@Data
public class UserIntegralLog implements Serializable {

    /**
    * 积分日志ID
    */
    private Integer integralLogId;
    /**
    * 外键，关联用户ID
    */
    private Integer userId;
    /**
    * 外键关联门店id
    */
    private Integer storeId;
    /**
    * 支出积分
    */
    private Integer expendScore;
    /**
    * 到账积分
    */
    private Integer arrivalScore;
    /**
    * 创建时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date rechargeTime;

    @TableField(exist = false)
    private Store store;

    @TableField(exist = false)
    private FrontUser frontUser;
}
